package com.example.aop;

import com.example.aop.biz.UserService;
import com.example.aop.biz.VipService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName:testSecurityAspect
 * Package:com.example.aop
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/11-9:43
 * @Version:v1.0
 */
public class testSecurityAspect {
    public static void main(String[] args) {
        ApplicationContext  applicationContext = new ClassPathXmlApplicationContext("spring-aop.xml");
        UserService userService = applicationContext.getBean("userService", UserService.class);
        VipService vipService = applicationContext.getBean("vipService", VipService.class);
        userService.saveUser();
        vipService.saveVip();
    }
}
